package com.weixing.mall.provider.controller.rpc;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.core.annotation.NoRepeatSubmit;
import com.weixing.mall.provider.api.model.vo.dto.BillSaveDto;
import com.weixing.mall.provider.service.IGoodsTransBillService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/*
* 调拨单生成
* */
@RestController
@RequestMapping("api/goodstransbill")
public class GoodsTransBillRpcController {

    @Autowired
    private IGoodsTransBillService goodsTransBillService;

    @ApiOperation(value = "调拨单申请/保存调拨单及关联商品信息")
    @PostMapping("save")
    public Result save(@RequestBody  BillSaveDto billSaveDto){
       goodsTransBillService.createBill(billSaveDto);

        return ResultUtil.success();
    }
}
